import fetch from 'common/src/utils/fetch';
// 获取成绩类型列表
export function getInterResultTypeList(data) {
    return fetch({
        url: '/api/majorservice/interResultType/list',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    });
}
// 添加
export function addInterResultType (data = []) {
    return fetch({
        url: '/api/majorservice/interResultType/addList',
        method: 'post',
        headers: {
            'Content-Type': 'application/json'
        },
        data
    });
}
// 修改
export function updateInterResultType (data = []) {
    return fetch({
        url: '/api/majorservice/interResultType/edit',
        method: 'post',
        headers: {
            'Content-Type': 'application/json'
        },
        data
    });
}
// 详情
export function interResultTypeDetail (gradeId,majorId) {
    return fetch({
        url: '/api/majorservice/interResultType/detail',
        params:{gradeId: gradeId,majorId: majorId},
        method: 'post',
        headers: {
            'Content-Type': 'application/json'
        },
    });
}
// 删除
export function deleteInterResultType (gradeId,majorId) {
    return fetch({
        url: '/api/majorservice/interResultType/delete',
        params: { gradeId: gradeId, majorId: majorId },
        method: 'post',
        headers: {
            'Content-Type': 'application/json'
        },
    });
}
//查询大类信息
export function findClassPower (data) {
    return fetch({
        url: '/api/welcomeservice/tutorSchool/major/' + data,
        method: 'get',
        headers: { 'Content-Type': 'application/json' },
        data
    });
}


